﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class VariableDocument : Single<VariableDocument> //Single 单一的
{
    //魅力//外貌//情缘//好感
    public int[] attributes = { 20, 19, 43, 29 };
    //等级
    public int Grade()
    {
        return (attributes[0] + attributes[1] + attributes[2] + attributes[3]) / 100;
    }

    //记录当前服装
    public int clothNum = 1;
    //角色立绘图
    public string[] roleImgAdress = {"Dress/11", "Dress/22", "Dress/33", "Dress/44", "Dress/55", "Dress/66", "Dress/77", "Dress/88", "Dress/99" };

    //敌人失败次数
    public int enemyFailNum = 1;


    //所有男宠Assets/Resources/Appointment/千里.png
    public string[,] allHandsomeMen =
    {
        {"千里", "Appointment/千里"},
        {"泰也", "Appointment/泰也"},
        {"焰卫", "Appointment/焰卫"},
        {"终南", "Appointment/终南"},
        {"英招", "Appointment/英招"},
        {"雅鲁", "Appointment/雅鲁"},
    };
}

//单例模式
public class Single<T> where T : new()
{
    private static  T instance;
    public static T GetInstance
    {
        get
        {
            if (instance == null)
            {
                instance = new T();
            }
            return instance;
        }
    }

}